import  http  from "../utils/request"

export function selectResume(val){
	return http({
		 url: '/user-module/uploadFile/selectResume',
		    method: 'GET',
			params: val
	})	
}

export function deleteResume(val){
	return http({
		 url: '/user-module/uploadFile/deleteResume',
		    method: 'GET',
			params: val
	})	
}

export function updateJobStatus(val){
	return http({
		 url: '/user-module/onlineResume/updateJobStatus',
		    method: 'POST',
			data: val
	})	
}

export function updateAdvantage(val){
	return http({
		 url: '/user-module/onlineResume/updateAdvantage',
		    method: 'POST',
			data: val
	})	
}

export function updateCertificates(val){
	return http({
		 url: '/user-module/onlineResume/updateCertificates',
		    method: 'POST',
			data: val
	})	
}

export function getAdvAndCert(val){
	return http({
		 url: '/user-module/onlineResume/selectUserAdvAndCer',
		    method: 'GET',
			params: val
	})	
}

export function getProjectHistory(val){
	return http({
		 url: '/user-module/onlineResume/selectProject',
		    method: 'GET',
			params: val
	})	
}

export function getEducationBackground(val){
	return http({
		 url: '/user-module/onlineResume/selectEduBack',
		    method: 'GET',
			params: val
	})	
}

export function getWorkHistory(val){
	return http({
		 url: '/user-module/onlineResume/selectWork',
		    method: 'GET',
			params: val
	})	
}

export function updateEducation(val){
	return http({
		 url: '/user-module/onlineResume/updateEdu',
		    method: 'POST',
			data: val
	})	
}

export function updateProject(val){
	return http({
		 url: '/user-module/onlineResume/updateProject',
		    method: 'POST',
			data: val
	})	
}

export function updateWork(val){
	return http({
		 url: '/user-module/onlineResume/updateWork',
		    method: 'POST',
			data: val
	})	
}

export function deleteProject(val){
	return http({
		 url: `/user-module/onlineResume/deleteProject/${val}`,
		    method: 'DELETE',
	})	
}

export function deleteEducation (val){
	return http({
		 url: `/user-module/onlineResume/deleteEdu/${val}`,
		    method: 'DELETE',
	})	
}

export function deleteWork(val){
	return http({
		 url: `/user-module/onlineResume/deleteWork/${val}`,
		    method: 'DELETE',
	})	
}

export function addProject(val){
	return http({
		 url: '/user-module/onlineResume/addProject',
		    method: 'POST',
			data: val
	})	
}

export function addEducation(val){
	return http({
		 url: '/user-module/onlineResume/addEdu',
		    method: 'POST',
			data: val
	})	
}

export function addWork(val){
	return http({
		 url: '/user-module/onlineResume/addWork',
		    method: 'POST',
			data: val
	})	
}
